#include "../include/stu.h"

void store_c()
{
	FILE *fp = fopen("./data/course.txt","w");
	struct course *p = head2;
	while (p != NULL) {
		fprintf(fp, "%d %s %s %d %d %d %d\n", p->id, p->name, p->type, p->time, p->credit, p->selectde, p->limit);
		p = p->next;
	}
	
	fclose(fp);
} 
